import request from '@/utils/request'

// 查询用户币对列表
export function listSymbol(query) {
  return request({
    url: '/platform/symbol/list',
    method: 'get',
    params: query
  })
}

// 查询用户币对详细
export function getSymbol(symbolId) {
  return request({
    url: '/platform/symbol/' + symbolId,
    method: 'get'
  })
}

// 新增用户币对
export function addSymbol(data) {
  return request({
    url: '/platform/symbol',
    method: 'post',
    data: data
  })
}

// 修改用户币对
export function updateSymbol(data) {
  return request({
    url: '/platform/symbol',
    method: 'put',
    data: data
  })
}

// 删除用户币对
export function delSymbol(symbolId) {
  return request({
    url: '/platform/symbol/' + symbolId,
    method: 'delete'
  })
}

// 导出用户币对
export function exportSymbol(query) {
  return request({
    url: '/platform/symbol/export',
    method: 'get',
    params: query
  })
}